import { createRouter, createWebHistory } from 'vue-router'
import Home from '../user/Home.vue'
import UserHome from '../user/UserHome.vue'
import AdminPanel from '../admin/AdminPanel.vue'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/user',
    name: 'UserHome',
    component: UserHome
  },
  {
    path: '/admin',
    name: 'AdminPanel',
    component: AdminPanel
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router